Skip to content

Commit e003174

Browse files
committed
Merge pull request #5 from christiaan/type_hints
Type Hinting improvements
2 parents 8112fe1 + 98ce363 commit e003174

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/Phpforce/SoapClient/BulkSaver.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
namespace Phpforce\SoapClient;
44

5-
use Phpforce\SoapClient\Client;
6-
use Phpforce\SoapClient\Response\SaveResult;
5+
use Phpforce\SoapClient\Result\SaveResult;
76

87
/**
98
* Add creates, updates and upserts to the queue, and issue them in bulk to

src/Phpforce/SoapClient/Result/DescribeGlobalResult.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ class DescribeGlobalResult
66
{
77
public $encoding;
88
public $maxBatchSize;
9+
/** @var DescribeGlobalSObjectResult[] */
910
public $sobjects = array();
1011
}

src/Phpforce/SoapClient/Result/DescribeSObjectResult.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Phpforce\SoapClient\Result;
44

55
use Doctrine\Common\Collections\ArrayCollection;
6+
use Phpforce\SoapClient\Result\DescribeSObjectResult\Field;
67

78
class DescribeSObjectResult
89
{
@@ -111,7 +112,7 @@ public function isFeedEnabled()
111112

112113
/**
113114
*
114-
* @return ArrayCollection
115+
* @return ArrayCollection|Field[]
115116
*/
116117
public function getFields()
117118
{

src/Phpforce/SoapClient/Result/SaveResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function isSuccess()
5353
}
5454

5555
/**
56-
* @return array
56+
* @return Error[]
5757
*/
5858
public function getErrors()
5959
{

src/Phpforce/SoapClient/Soap/SoapClientFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ class SoapClientFactory
4646
/**
4747
* Type converters collection
4848
*
49-
* @var TypeConverterCollection
49+
* @var TypeConverter\TypeConverterCollection
5050
*/
5151
protected $typeConverters;
5252

5353
/**
5454
* @param string $wsdl Some argument description
5555
*
56-
* @return void
56+
* @return SoapClient
5757
*/
5858
public function factory($wsdl)
5959
{
@@ -80,7 +80,7 @@ public function setClassmapping($soap, $php)
8080
/**
8181
* Get type converter collection that will be used for the \SoapClient
8282
*
83-
* @return TypeConverterCollection
83+
* @return TypeConverter\TypeConverterCollection
8484
*/
8585
public function getTypeConverters()
8686
{
@@ -99,7 +99,7 @@ public function getTypeConverters()
9999
/**
100100
* Set type converter collection
101101
*
102-
* @param type $typeConverters Type converter collection
102+
* @param TypeConverter\TypeConverterCollection $typeConverters Type converter collection
103103
*
104104
* @return SoapClientFactory
105105
*/

0 commit comments

Comments
 (0)