Get the current set of this option's requirements
public getNeeds ( ) : string[] | ||
리턴 | string[] | List of required options |
/** * Test that requires options are set correctly */ public function testSetRequired() { $option = new Option('f'); $option->setNeeds('foo'); $this->assertTrue(in_array('foo', $option->getNeeds())); }