Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#33 bunq response #34

Merged
merged 4 commits into from
Aug 10, 2017
Merged

#33 bunq response #34

merged 4 commits into from
Aug 10, 2017

Conversation

dnl-blkv
Copy link
Contributor

@dnl-blkv dnl-blkv commented Aug 9, 2017

Fixes #33

@dnl-blkv dnl-blkv added this to the v0.10.0 milestone Aug 9, 2017
// Retrieve the active user.
/** @var User[] $users */
$users = User::listing($apiContext)->getValue();
$user= $users[INDEX_FIRST]->getUserCompany();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

*/
public function get($uri, array $customHeaders = [])
{
return $this->request(self::METHOD_GET, $uri, [], $customHeaders);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bundle the CRUD functions together?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@@ -36,18 +36,20 @@ class AttachmentConversationContent extends BunqModel
* @param int $attachmentId
* @param string[] $customHeaders
*
* @return string|StreamInterface
* @return BunqResponse<string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really php type ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this on purpose added to the generator?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this one is on purpose. For now it is just an indicator of which type is enclosed as value. Further on I will capitalize the type name, get rid of < and >, and generate BunqResponse extensions featuring proper documentation.

@@ -59,13 +60,13 @@ class AttachmentMonetaryAccount extends BunqModel
* @param int $monetaryAccountId
* @param string[] $customHeaders
*
* @return int
* @return BunqResponse<int>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same :)

Copy link
Contributor

@OGKevin OGKevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests passing @dnl-blkv

@andrederoos andrederoos merged commit 95b50a6 into develop Aug 10, 2017
@andrederoos andrederoos deleted the 33-bunq-response branch August 10, 2017 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants