Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ protected function _getMethodInfo(\ReflectionMethod $method)
'parameters' => $parameters,
'body' => $this->_getMethodBody($method->getName(), $parameterNames),
'docblock' => ['shortDescription' => '{@inheritdoc}'],
'returnType' => $method->getReturnType(),
];

return $methodInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class Sample
*/
protected $messages = [];

/**
* @var array
*/
private $config = [];

/**
* @param array $messages
*/
Expand All @@ -31,4 +36,20 @@ public function getMessages()
{
return $this->messages;
}

/**
* @param array $config
*/
public function setConfig(array $config)
{
$this->config = $config;
}

/**
* @return array
*/
public function getConfig(): array
{
return $this->config;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,20 @@ class Sample_Proxy extends \Magento\Framework\ObjectManager\Code\Generator\Sampl
{
return $this->_getSubject()->getMessages();
}

/**
* {@inheritdoc}
*/
public function setConfig(array $config)
{
return $this->_getSubject()->setConfig($config);
}

/**
* {@inheritdoc}
*/
public function getConfig() : array
{
return $this->_getSubject()->getConfig();
}
}