Commando\Option::getNeeds PHP Method

getNeeds() public method

Get the current set of this option's requirements
public getNeeds ( ) : string[]
return string[] List of required options
    public function getNeeds()
    {
        return $this->needs;
    }

Usage Example

コード例 #1
0
 /**
  * Test that requires options are set correctly
  */
 public function testSetRequired()
 {
     $option = new Option('f');
     $option->setNeeds('foo');
     $this->assertTrue(in_array('foo', $option->getNeeds()));
 }