Role::__construct PHP Метод

__construct() публичный Метод

public __construct ( $id = null, $name = null, $description = null )
        public function __construct($id = null, $name = null, $description = null)
        {
            $this->id = $id;
            $this->name = $name;
            $this->description = $description;
        }

Usage Example

Пример #1
0
 /**
  * 	Construct Class
  *
  * 	@param array $data An array with the data of a MovieRole
  */
 public function __construct($data, $idPerson)
 {
     $this->_data = $data;
     parent::__construct($data, $idPerson);
 }
All Usage Examples Of Role::__construct