Skip to content

Commit

Permalink
Updated stubs regarding to the 3.4.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Dec 9, 2018
1 parent 48e7920 commit 65144f2
Show file tree
Hide file tree
Showing 77 changed files with 310 additions and 201 deletions.
4 changes: 2 additions & 2 deletions src/Phalcon/Crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function setPadding($scheme) {}
* algorithm for current openssl library version.
*
* @param string $cipher
* @return Crypt
* @return \Phalcon\CryptInterface
*/
public function setCipher($cipher) {}

Expand All @@ -137,7 +137,7 @@ public function getCipher() {}
*
* @see \Phalcon\Security\Random
* @param string $key
* @return Crypt
* @return \Phalcon\CryptInterface
*/
public function setKey($key) {}

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/CryptInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getKey();
* Encrypts a text
*
* @param string $text
* @param mixed $key
* @param string $key
* @return string
*/
public function encrypt($text, $key = null);
Expand Down
10 changes: 5 additions & 5 deletions src/Phalcon/Di.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function getServices() {}
/**
* Check if a service is registered using the array syntax
*
* @param string $name
* @param mixed $name
* @return bool
*/
public function offsetExists($name) {}
Expand All @@ -208,7 +208,7 @@ public function offsetExists($name) {}
* $di["request"] = new \Phalcon\Http\Request();
* </code>
*
* @param string $name
* @param mixed $name
* @param mixed $definition
* @return bool
*/
Expand All @@ -221,15 +221,15 @@ public function offsetSet($name, $definition) {}
* var_dump($di["request"]);
* </code>
*
* @param string $name
* @param mixed $name
* @return mixed
*/
public function offsetGet($name) {}

/**
* Removes a service from the services container using the array syntax
*
* @param string $name
* @param mixed $name
* @return bool
*/
public function offsetUnset($name) {}
Expand Down Expand Up @@ -275,7 +275,7 @@ public static function setDefault(\Phalcon\DiInterface $dependencyInjector) {}
/**
* Return the latest DI created
*
* @return \Phalcon\DiInterface
* @return null|\Phalcon\DiInterface
*/
public static function getDefault() {}

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/DiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function remove($name);
* @param string $name
* @param mixed $definition
* @param boolean $shared
* @return \Phalcon\Di\ServiceInterface
* @return bool|\Phalcon\Di\ServiceInterface
*/
public function attempt($name, $definition, $shared = false);

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/FactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface FactoryInterface

/**
* @param \Phalcon\Config|array $config
* @return object
* @return mixed
*/
public static function load($config);

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Filter implements \Phalcon\FilterInterface
*
* @param string $name
* @param mixed $handler
* @return Filter
* @return \Phalcon\FilterInterface
*/
public function add($name, $handler) {}

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/FlashInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function warning($message);
* Outputs a message
*
* @param string $type
* @param mixed $message
* @param string $message
*/
public function message($type, $message);

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function getClasses() {}
* @param bool $prepend
* @return Loader
*/
public function register($prepend = null) {}
public function register($prepend = false) {}

/**
* Unregister the autoload method
Expand Down
8 changes: 4 additions & 4 deletions src/Phalcon/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,31 +66,31 @@ public final function __construct() {}
/**
* Checks if the element is present in the registry
*
* @param string $offset
* @param mixed $offset
* @return bool
*/
public final function offsetExists($offset) {}

/**
* Returns an index in the registry
*
* @param string $offset
* @param mixed $offset
* @return mixed
*/
public final function offsetGet($offset) {}

/**
* Sets an element in the registry
*
* @param string $offset
* @param mixed $offset
* @param mixed $value
*/
public final function offsetSet($offset, $value) {}

/**
* Unsets an element in the registry
*
* @param string $offset
* @param mixed $offset
*/
public final function offsetUnset($offset) {}

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function rules($field, array $validators) {}
/**
* Adds filters to the field
*
* @param string $field
* @param array|string $field
* @param array|string $filters
* @return Validation
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Phalcon/acl/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,43 +33,43 @@ abstract class Adapter implements \Phalcon\Acl\AdapterInterface, \Phalcon\Events
/**
* Role which the list is checking if it's allowed to certain resource/access
*
* @var mixed
* @var string
*/
protected $_activeRole;

/**
* Resource which the list is checking if some role can access it
*
* @var mixed
* @var string
*/
protected $_activeResource;

/**
* Active access which the list is checking if some role can access it
*
* @var mixed
* @var string
*/
protected $_activeAccess;


/**
* Role which the list is checking if it's allowed to certain resource/access
*
* @return mixed
* @return string
*/
public function getActiveRole() {}

/**
* Resource which the list is checking if some role can access it
*
* @return mixed
* @return string
*/
public function getActiveResource() {}

/**
* Active access which the list is checking if some role can access it
*
* @return mixed
* @return string
*/
public function getActiveAccess() {}

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/acl/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function deny($roleName, $resourceName, $access, $func = null);
*
* @param mixed $roleName
* @param mixed $resourceName
* @param mixed $access
* @param string $access
* @param array $parameters
* @return bool
*/
Expand Down
32 changes: 22 additions & 10 deletions src/Phalcon/assets/Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,36 @@
*/
class Inline implements \Phalcon\Assets\ResourceInterface
{

/**
* @var string
*/
protected $_type;


protected $_content;


/**
* @var bool
*/
protected $_filter;


protected $_attributes;



/**
* @return string
*/
public function getType() {}


public function getContent() {}


/**
* @return bool
*/
public function getFilter() {}


public function getAttributes() {}

/**
* Phalcon\Assets\Inline constructor
*
Expand All @@ -52,26 +57,33 @@ public function __construct($type, $content, $filter = true, $attributes = null)
* Sets the inline's type
*
* @param string $type
* @return Inline
* @return ResourceInterface
*/
public function setType($type) {}

/**
* Sets if the resource must be filtered or not
*
* @param bool $filter
* @return Inline
* @return ResourceInterface
*/
public function setFilter($filter) {}

/**
* Sets extra HTML attributes
*
* @param array $attributes
* @return Inline
* @return ResourceInterface
*/
public function setAttributes(array $attributes) {}

/**
* returns extra HTML attributes
*
* @return array|null
*/
public function getAttributes() {}

/**
* Gets the resource's key.
*
Expand Down
10 changes: 5 additions & 5 deletions src/Phalcon/assets/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Resource implements \Phalcon\Assets\ResourceInterface
protected $_local;

/**
* @var boolean
* @var bool
*/
protected $_filter;

Expand Down Expand Up @@ -64,7 +64,7 @@ public function getPath() {}
public function getLocal() {}

/**
* @return boolean
* @return bool
*/
public function getFilter() {}

Expand Down Expand Up @@ -97,7 +97,7 @@ public function __construct($type, $path, $local = true, $filter = true, $attrib
* Sets the resource's type
*
* @param string $type
* @return Resource
* @return ResourceInterface
*/
public function setType($type) {}

Expand All @@ -121,15 +121,15 @@ public function setLocal($local) {}
* Sets if the resource must be filtered or not
*
* @param bool $filter
* @return Resource
* @return ResourceInterface
*/
public function setFilter($filter) {}

/**
* Sets extra HTML attributes
*
* @param array $attributes
* @return Resource
* @return ResourceInterface
*/
public function setAttributes(array $attributes) {}

Expand Down
4 changes: 2 additions & 2 deletions src/Phalcon/cache/BackendInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function save($keyName = null, $content = null, $lifetime = null, $stopBu
/**
* Deletes a value from the cache by its key
*
* @param int|string $keyName
* @param string $keyName
* @return boolean
*/
public function delete($keyName);
Expand All @@ -109,7 +109,7 @@ public function queryKeys($prefix = null);
*
* @param string $keyName
* @param int $lifetime
* @return boolean
* @return bool
*/
public function exists($keyName = null, $lifetime = null);

Expand Down
8 changes: 4 additions & 4 deletions src/Phalcon/db/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public function dropTable($tableName, $schemaName = null, $ifExists = true) {}
*
* @param string $viewName
* @param array $definition
* @param mixed $schemaName
* @param string $schemaName
* @return bool
*/
public function createView($viewName, array $definition, $schemaName = null) {}
Expand Down Expand Up @@ -625,8 +625,8 @@ public function listViews($schemaName = null) {}
* @param string schema
* @return Phalcon\Db\Index[]
* @param string $table
* @param mixed $schema
* @return Index[]
* @param string $schema
* @return IndexInterface[]
*/
public function describeIndexes($table, $schema = null) {}

Expand All @@ -641,7 +641,7 @@ public function describeIndexes($table, $schema = null) {}
*
* @param string $table
* @param string $schema
* @return Reference[]
* @return ReferenceInterface[]
*/
public function describeReferences($table, $schema = null) {}

Expand Down
Loading

0 comments on commit 65144f2

Please sign in to comment.